home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 363 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: Norway.EU.net!usenet
  2. From: patrick.hanevold@login.eunet.no (Patrick Hanevold)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: RND
  5. Date: 6 Jan 1996 21:10:25 GMT
  6. Organization: EUnet Norway
  7. Message-ID: <671.6579T1321T1500@login.eunet.no>
  8. References: <709.6578T1027T1962@login.eunet.no> <1996Jan6.190221.7989@imada.ou.dk>
  9. NNTP-Posting-Host: pc6.asker-pm2-1.eunet.no
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13. >> RND     MACRO
  14. >>         move.w  (a0),\1
  15. >>         move.w  2(a0,\1.l*2),\1
  16. >>         move.w  \1,(a0)
  17. >>         ENDM
  18.  
  19. >This is very likely to result in a cycle, hence decreasing the
  20. >random sequence drastically.
  21. Just like the original random routine. :)
  22.  
  23. >A way to get around this problem is to use an additive pseudo-
  24. >random generator (warning: off the top of my head)
  25. Many ways to solve the problem, but it's good enough as it is.
  26. Don't get no pattern in my fractal landscapes. :)
  27.  
  28. Never get a routine that never repeats it self some time.
  29.  
  30. <sb>Patrick Hanevold - Virtual Reality developer
  31. <sb>patrick.hanevold@login.eunet.no
  32. <sb>Amiga and official Be developer
  33.  
  34.